a11y: handle atk race condition where widget has been destroyed
authorChristian Hergert <christian@hergert.me>
Sat, 21 Mar 2015 21:17:39 +0000 (14:17 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Mar 2015 00:05:08 +0000 (20:05 -0400)
commit7bb3d9557f1695d53bdd7fece1421ac8a3faffa7
tree99d9119e7f18933123510615106f6e9c33e83353
parent9e9c0a133e8e8f56f83f43ac4c159472d5631e70
a11y: handle atk race condition where widget has been destroyed

If the widget has been destroyed since a DBus message had been sent,
we could be in a condition that the widget pointer exists but it does
not have a window.

This bails as if the widget didn't exist if there is no available
GdkWindow.

We also set the extents to 0 to be defensive since this is a vfunc
implementation.

https://bugzilla.gnome.org/show_bug.cgi?id=746586
gtk/a11y/gtktextviewaccessible.c